import request from '@/utils/request'

// 查询POCT检测规则列表
export function listDetectionRules(query) {
  return request({
    url: '/system/detectionRules/list',
    method: 'get',
    params: query
  })
}

// 查询POCT检测规则详细
export function getDetectionRules(id) {
  return request({
    url: '/system/detectionRules/' + id,
    method: 'get'
  })
}

// 新增POCT检测规则
export function addDetectionRules(data) {
  return request({
    url: '/system/detectionRules',
    method: 'post',
    data: data
  })
}

// 修改POCT检测规则
export function updateDetectionRules(data) {
  return request({
    url: '/system/detectionRules',
    method: 'put',
    data: data
  })
}

// 删除POCT检测规则
export function delDetectionRules(id) {
  return request({
    url: '/system/detectionRules/' + id,
    method: 'delete'
  })
}
